package com.neutechi.day01.homework;

import java.util.Scanner;

public class ex6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数值:");
        int num1 = sc.nextInt();
        double result=Math.pow(num1,2);
        System.out.println("它的平方为:"+result);
        System.out.println("请输入第一个数值:");
        int num2 = sc.nextInt();
        System.out.println("请输入第二个数值:");
        int num3 = sc.nextInt();
        int result1 = num2-num3;
        System.out.println(result1);
    }
}
